package net.zjitc.object.printer;

/**
 * @author: pyt
 * @date: 2019-03-26 9:29
 * @description：
 */


public class PrinterFactory {
    public static Printer getPrinter(int a) {
        Printer printer;
        if(a==1){
            return new HPPrinter();
        }else{
            return new CanonPrinter();
        }
    }
}
